ul,
li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.chess-board {
  width: 800px;
  height: 900px;
  &-ul {
    display: grid;
    width: 800px;
    height: 900px;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(9, 1fr);
    box-sizing: border-box;
    li {
      border: 1px solid rgba(0, 0, 0, 0.8);
      box-sizing: border-box;
      &.middle {
        border: 0;
      }
      &.no-right-border {
        border-right: none;
      }
      &.no-left-border {
        border-left: none;
      }
      &.no-top-border {
        border-top: none;
      }
      &.no-bottom-border {
        border-bottom: none;
      }

      &.path {
        position: relative;
        &.x {
          &::before {
            position: absolute;
            top: -100px;
            left: 0;
            transform: translate(-50%, 0);
          }
          &.x-0 {
            &::before {
              content: "1";
            }
          }
          &.x-1 {
            &::before {
              content: "2";
            }
          }
          &.x-2 {
            &::before {
              content: "3";
            }
          }
          &.x-3 {
            &::before {
              content: "4";
            }
          }
          &.x-4 {
            &::before {
              content: "5";
            }
          }
          &.x-5 {
            &::before {
              content: "6";
            }
          }
          &.x-6 {
            &::before {
              content: "7";
            }
          }
          &.x-7 {
            &::before {
              content: "8";
            }
          }
          &.x-last {
            &::after {
              content: "9";
              position: absolute;
              top: -100px;
              right: 0;
              transform: translate(50%, 0);
            }
          }
        }
        &.y {
          &::after {
            position: absolute;
            top: 0;
            left: -100px;
            transform: translate(0, -50%);
          }
          &.y-0 {
            &::after {
              content: "1";
            }
          }
          &.y-1 {
            &::after {
              content: "2";
            }
          }
          &.y-2 {
            &::after {
              content: "3";
            }
          }
          &.y-3 {
            &::after {
              content: "4";
            }
          }
          &.y-4 {
            &::after {
              content: "5";
            }
          }
          &.y-5 {
            &::after {
              content: "6";
            }
          }
          &.y-6 {
            &::after {
              content: "7";
            }
          }
          &.y-7 {
            &::after {
              content: "8";
            }
          }
          &.y-8 {
            &::after {
              content: "9";
            }
          }
          &.y-last {
            &::before {
              content: "10";
              position: absolute;
              bottom: 0;
              left: -100px;
              transform: translate(0, 50%);
            }
          }
        }
      }
    }
  }
}

.chess-box {
  position: relative;
  width: 800px;
  height: 900px;
  transform: scale(0.5);
  margin: 48px;
  transform-style: preserve-3d;
  .my-chess {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) translateZ(200px) rotate3d(1, 0, 0, 30deg);
    font-size: 24px;
    color: #35aafc;
    background-image: url("https://img1.baidu.com/it/u=1116665845,583892892&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=1067");
    background-position: 580px 820px;
    // background-color: #fff;
    user-select: none;
    box-sizing: border-box;
    transform-style: preserve-3d;
    transition: all 0.1s ease-in-out;
    font-size: 35px;
    &.checked {
      transform: translate(-50%, -80%) translateZ(400px)
        rotate3d(1, 0, 0, 25deg);
      z-index: 9;
      &::after {
        height: 115px;
        transform: translateX(0px) translateY(-10px) translateZ(-50px)
          rotateX(300deg);
        transform-origin: 0 0;
      }

      &::before {
        opacity: 1;
        background-color: rgba(0, 0, 0, 0.8);
      }
    }
    &::after {
      content: "";
      display: flex;
      justify-content: center;
      align-items: center;
      position: absolute;
      background-image: url("https://img1.baidu.com/it/u=1116665845,583892892&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=1067");
      background-position: 400px 620px;
      width: 90px;
      height: 105px;
      transform: translateX(0px) translateY(-20px) translateZ(-50px)
        rotateX(300deg);
      transform-origin: 0 0;
      z-index: -1;
      border-radius: 50%;
      transition: all 0.2s;
    }

    &::before {
      content: "";
      position: absolute;
      display: block;
      width: 90px;
      height: 90px;
      border-radius: 50%;
      transform: translateY(-140px) translateZ(-400px) scale(0.7);
      filter: blur(20px);
      opacity: 0;
      transition: opacity 0.5s;
    }
  }
  .prediction-drop {
    width: 100%;
    height: 100%;
    &-item {
      position: absolute;
      width: 10px;
      height: 10px;
      background-color: #35aafc;
      transform: translate(-50%, -50%);
      border-radius: 50%;
      opacity: 0;
      &.show {
        opacity: 1;
      }
      &.x-0 {
        left: 0;
      }
      &.x-1 {
        left: 100px;
      }
      &.x-2 {
        left: 200px;
      }
      &.x-3 {
        left: 300px;
      }
      &.x-4 {
        left: 400px;
      }
      &.x-5 {
        left: 500px;
      }
      &.x-6 {
        left: 600px;
      }
      &.x-7 {
        left: 700px;
      }
      &.x-8 {
        left: 800px;
      }
      &.y-0 {
        top: 0;
      }
      &.y-1 {
        top: 100px;
      }
      &.y-2 {
        top: 200px;
      }
      &.y-3 {
        top: 300px;
      }
      &.y-4 {
        top: 400px;
      }
      &.y-5 {
        top: 500px;
      }
      &.y-6 {
        top: 600px;
      }
      &.y-7 {
        top: 700px;
      }
      &.y-8 {
        top: 800px;
      }
      &.y-9 {
        top: 900px;
      }
    }
  }
}

.button {
  &-default {
    width: 120px;
    height: 36px;
    padding: 0 24px;
    outline: none;
    border: 0;
    background-color: #35aafc;
    color: #fff;
    line-height: 36px;
    border-radius: 6px;
    box-sizing: border-box;
  }
}

